import _http from '@/utils/http'

export default {
    /**
     * 库存相关
     */
    warehouseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/list',
            apiName: '总部库存列表',
        }, params, loading, headers)
    },

    warehouseInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/info',
            apiName: '总部某商品库存信息',
        }, params, loading, headers)
    },

    warehouseListDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/list-down',
            apiName: '总部库存列表下载',
        }, params, loading, headers)
    },

    warehouseImportTemplate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/importTemplate',
            apiName: '入库模板下载',
        }, params, loading, headers)
    },

    warehouseRecord(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/import/record/list',
            apiName: '入库记录',
        }, params, loading, headers)
    },

    warehouseRecordDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/import/record/detail',
            apiName: '入库记录详情',
        }, params, loading, headers)
    },

    warehouseInfoList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/info/list',
            apiName: '库存-设备商品列表详情',
        }, params, loading, headers)
    },

    warehouseInfoExport(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/info/export',
            apiName: '库存-设备商品列表导出',
        }, params, loading, headers)
    },

    warehouseDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/delete',
            apiName: '库存-设备删除',
        }, params, loading, headers)
    },

    warehouseSyncOne(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/sync/manu/one',
            apiName: '库存-手动同步激活充值记录',
        }, params, loading, headers)
    },

    shopList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/choose/list',
            apiName: '获取代理商列表',
        }, params, loading, headers)
    },

    transferCreate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/create',
            apiName: '新增调拨单',
        }, params, loading, headers)
    },

    transferList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/list',
            apiName: '调拨单列表',
        }, params, loading, headers)
    },

    transferDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/record/detail',
            apiName: '调拨单记录详情',
        }, params, loading, headers)
    },

    transferInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/info',
            apiName: '调拨单详情',
        }, params, loading, headers)
    },

    transferDeviceDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/detail',
            apiName: '调拨单设备商品详情',
        }, params, loading, headers)
    },

    transferSubmit(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/submit',
            apiName: '调拨单申请',
        }, params, loading, headers)
    },

    transferExport(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/detail/export',
            apiName: '调拨单导出',
        }, params, loading, headers)
    },

    transferDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/diaobo/delete',
            apiName: '调拨单删除',
        }, params, loading, headers)
    },

    tuikuRecordList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/tuiku/record/list',
            apiName: '退库记录列表',
        }, params, loading, headers)
    },

    tuikuRecordDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/tuiku/record/detail',
            apiName: '退库记录详情',
        }, params, loading, headers)
    },

    shouhuiRecordList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/shouhui/list',
            apiName: '回拨记录列表',
        }, params, loading, headers)
    },

    shouhuiRecordDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/shouhui/record/detail',
            apiName: '回拨记录详情',
        }, params, loading, headers)
    },

    deptDeviceList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/dept/list',
            apiName: '代理商设备商品列表',
        }, params, loading, headers)
    },

    deptDeviceExport(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/dept/export',
            apiName: '代理商设备商品列表下载',
        }, params, loading, headers)
    },

    warehouseDeptList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/dept/list',
            apiName: '代理商库存列表',
        }, params, loading, headers)
    },

    warehouseChooseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/choose-list',
            apiName: '库存下拉',
        }, params, loading, headers)
    },

    shouhuiSubmit(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/shouhui/submit',
            apiName: '批量回拨设备',
        }, params, loading, headers)
    },

    errList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/sync-err/list',
            apiName: '异常记录',
        }, params, loading, headers)
    },

    errDeleteList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/sync-err/delete',
            apiName: '删除记录',
        }, params, loading, headers)
    },
}
